package cn.bby.query.base.exception;

import cn.bby.jtk.base.exception.ServiceException;
import cn.bby.query.base.model.req.QueryRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @author ben
 * @since 2025/4/15 23:08
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AdvQueryException extends ServiceException {
    private static final long serialVersionUID = -8802538502627591189L;
    private QueryRequest request;

    public AdvQueryException(String code, QueryRequest request) {
        super(code, code);
        this.request = request;
    }

    public AdvQueryException(String code, Throwable cause, QueryRequest request) {
        super(code, cause);
        this.request = request;
    }
}
